<?php
include_once('common/header.php');	
if($AppUI->id <= 0) {
	$this->_redirect(HOST_BACKEND);
}
$intType		= $objRequest->getParam('type', 0);
$intParentId	= $objRequest->getParam('parentid', 0);
$objCommon 		= new Vfriend_Common();
$arrSubCate		= $objCommon->getCategory($intParentId,9);
$this->view->arrSubCate = $arrSubCate;
$objView 		= Zend_Registry::get('objView');
$strData 		= $objView->fetch('ajax/category.tpl');
$arrJson 		= array('data'=>$strData);
echo $objRequest->getParam('callback') . '(' . Zend_Json::encode($arrJson) . ')';
exit();
?>